package com.khotyn.heresy.service;

import com.khotyn.heresy.dao.PictureDAO;

/**
 * 举报图片服务类
 * 
 * @author 黄挺
 * 
 */
public class InformAgainstPictureService {
	PictureDAO pictureDAO;

	/**
	 * 举报图片服务函数，修改图片Bean审查标记位，然后进行数据库操作
	 * 
	 * @param picture 图片Bean
	 * @param requestURL 请求URL
	 * @return 修改后的图片Bean
	 */
	public void doService(String pictureID, Integer userID) {
		doDBOperate(pictureID, "reported");
	}

	/**
	 * 举报图片数据库操作函数
	 * 
	 * @param picture 图片Bean
	 * @param requestURL 请求URL
	 */
	public void doDBOperate(String pictureID, String flagCheck) {
		pictureDAO.updatePictureCheckFlag(pictureID, flagCheck);
	}

	public void setPictureDAO(PictureDAO pictureDAO) {
		this.pictureDAO = pictureDAO;
	}
}
